package com.heima.wemedia.bloom;

import com.heima.wemedia.WemediaApplication;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.test.context.junit4.SpringRunner;
import redis.clients.jedis.Jedis;
import io.rebloom.client.Client;
@SpringBootTest(classes = WemediaApplication.class)
@RunWith(SpringRunner.class)
public class BloomFilter {

  @Autowired
  @Qualifier("Bloom")
  Client client;


   @Test
    public void test() {

        client.add("bloom", "1");

        System.out.println(client.exists("bloom", "1"));
    }
}
